package com.fruit.service.fruit;

import com.fruit.bean.entity.fruit.FruitUserAddressInfo;
import com.fruit.dao.fruit.FruitUserAddressRepository;
import com.fruit.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 *
 * @author 轩辚
 * @date 2021/5/7 21:53
 */
@Service
public class FruitUserAddressService extends BaseService<FruitUserAddressInfo,Long, FruitUserAddressRepository> {

    @Autowired
    private FruitUserAddressRepository addressRepository;

    public List<FruitUserAddressInfo> getUserAddressList(Long userId) {
        return addressRepository.findByUserId(userId);
    }
}
